﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Galleries.ascx.cs" Inherits="controls_admin_Galleries" %>
<script src="../resources/scripts/jquery-1.6.4.js" type="text/javascript"></script>
<script src="../resources/scripts/jquery.tablednd_0_5.js" type="text/javascript"></script>
<script type="text/javascript">
    var variable = "0";
    var index = "";
    var j = jQuery.noConflict();
    j(document).ready(function ()
    {
        j(".child0").click(function ()
        {
            return false;
        });
    });
</script>
<!-- table -->
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5 runat="server" id="title">
            Album ảnh</h5>
        <div class="search">
        </div>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="first-action">
        <div class="button">
            <a href="default.aspx?control=galleryadd">
                <input type="button" value="Thêm Mới" /></a>
        </div>
    </div>
    <!-- end box / title -->
    <div class="table">
        <table id="table-3">
            <thead>
                <tr>
                    <th class="smaller">
                        STT
                    </th>
                    <th>
                        Tên ALBUM
                    </th>
                    <th>
                        Ngày tạo
                    </th>
                    <th class="small">
                        Sửa
                    </th>
                    <th class="selected last">
                        <input type="checkbox" class="checkall" />
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptData" runat="server">
                    <ItemTemplate>
                        <tr id="<%#Eval("GALLERY_ID") %>" style="cursor: move">
                            <td class="right">
                                <%#Container.ItemIndex+1%>
                                <asp:HiddenField runat="server" ID="hdfID" Value='<%#Eval("GALLERY_ID")%>' />
                            </td>
                            <td class="left">
                                <a class='' href='default.aspx?control=gallerydetails&GALLERY_ID=<%#Eval("GALLERY_ID")%>'>
                                    <%--<asp:TextBox runat="server" ID="txtTitle" Text='<%#Eval("FULL_CATEGORY_NAME")%>' />--%>
                                    <%#Eval("GALLERY_NAME")%>
                                </a>
                            </td>
                            <td>
                                <%#Eval("CREATED_DATE","{0:dd/MM/yyyy}")%>
                            </td>
                            <td>
                                <a href="default.aspx?control=galleryedit&id=<%#Eval("GALLERY_ID").ToString() %>"
                                    class="edit" title="Chỉnh sửa">&nbsp;&nbsp;&nbsp;</a>
                            </td>
                            <td class="last">
                                <input id="chkBox" type="checkbox" value='<%#Eval("GALLERY_ID")%>' class="item" runat="server" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="action">
            <asp:DropDownList ID="ddlAction" runat="server" OnSelectedIndexChanged="ddlAction_SelectedIndexChanged"
                AutoPostBack="true" CssClass="selectwidth">
                <asp:ListItem Value="0" class="folder-open" Text="---Chọn hành động---"></asp:ListItem>
                <asp:ListItem Value="1" class="locked" Text="Di chuyển tới thùng rác"></asp:ListItem>
                <asp:ListItem Value="2" class="unlocked" Text="Xóa vĩnh viễn"></asp:ListItem>
            </asp:DropDownList>
            <div class="button">
                <a href="default.aspx?control=galleryadd">
                    <input type="button" value="Thêm Mới" /></a>
            </div>
        </div>
    </div>
</div>
<!-- end table -->
